package com.rideshare

class User {
  
  static hasMany = [records: CommuteRecord]

    static constraints = {
      firstName(blank:false)
      lastName(blank:false)
      records(nullable:true)
    }
    
    String firstName
    String lastName
    
    
    public String toString() {
      return "${this.firstName}"
    }
}
